package com.jeesite.modules.fl.entity;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.jeesite.common.entity.DataEntity;
import com.jeesite.common.mybatis.annotation.Column;
import com.jeesite.common.mybatis.annotation.Table;
import com.jeesite.common.mybatis.mapper.query.QueryType;

@Table(name = "fl_holiday", alias = "a", columns = {
        @Column(name = "id", attrName = "id", label = "id", isPK = true),
        @Column(name = "name", attrName = "name", label = "节假日名称", queryType = QueryType.LIKE),
        @Column(name = "clinics", attrName = "clinics", label = "诊所", queryType = QueryType.LIKE),
        @Column(name = "date", attrName = "date", label = "节假日期"),
        @Column(name = "week", attrName = "week", label = "上周几班"),
        @Column(name = "holiday_status", attrName = "holidayStatus", label = "作休状态"),
        @Column(includeEntity = DataEntity.class),
	}, orderBy = "a.update_date DESC"
)
public class SysHoliday extends DataEntity<SysHoliday>{
	private static final long serialVersionUID = 1L;

	private String name;
	private Date date;
	private String clinics;
	private String week;
	private String holidayStatus;

	public SysHoliday(){
		super();
	}
	
	public SysHoliday(String id){
		super(id);
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}


	public String getHolidayStatus() {
		return holidayStatus;
	}

	public void setHolidayStatus(String holidayStatus) {
		this.holidayStatus = holidayStatus;
	}

	@JsonFormat(pattern = "yyyy-MM-dd")
	public Date getDate() {
		return date;
	}

	public void setDate(Date date) {
		this.date = date;
	}

	public String getClinics() {
		return clinics;
	}

	public void setClinics(String clinics) {
		this.clinics = clinics;
	}

	public String getWeek() {
		return week;
	}

	public void setWeek(String week) {
		this.week = week;
	}

	
}
